<template>
  <layout :config="navConfig">
    <template #default>
      <div class="m-apply-title">选择级别</div>
      <div class="m-apply-radios">
        <label v-for="$item in radioData" :key="$item">
          <input type="radio" v-model="radioValue" :value="$item">
          <span class="radioButton">{{$item}}$</span>
        </label>
      </div>
      <div class="m-apply-info">
        <p>注: 可同时开启多个级别</p>
        <p>列: 要1000级别者必须250+500全开</p>
      </div>
      <button class="m-apply-button">确定</button>
      <div class="m-apply-list-box">
        <div class="title">申请记录</div>
        <div class="list-item" v-for="(item,index) in applyList" :key="index">
          <div class="item-size">
            <span>级别</span>
            <span>{{item.size}}</span>
          </div>
          <div class="item-status">
            <span>状态</span>
            <span>{{item.status}}</span>
          </div>
          <div class="item-time">{{item.time}}</div>
        </div>
      </div>
    </template>
  </layout>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { INavigation } from "@/types";

@Component({
  name: "applyHelp"
})
export default class extends Vue {
  navConfig: INavigation = {
    text: "申请帮助"
  };

  radioData = [100, 250, 500, 1000, 2000, 4000];
  radioValue = "";

  applyList = [
    {
      size: 100,
      status: "成功",
      time: "2019-04-26 23:23"
    },
    {
      size: 2000,
      status: "失败",
      time: "2019-04-26 23:23"
    }
  ];
}
</script>

<style lang="scss">
@import "../assets/styles/applyHelp.scss";
</style>

